package exercises.innerclasses;

/**
 * @author: liuchong
 * @create: 2023/3/28 16:45
 * @description:
 */
class Test {
    private class inner implements Ex11Interface{
        public void say() {
            System.out.println("hello");
        }
    }
    Ex11Interface f() {
        return new inner();
    }
}
public class Ex11 {
    public static void main(String[] args) {
        Test ex11 = new Test();
        ex11.f().say();
//        ((Test.inner)ex11.f()).say();
    }
}
